package com.woniuxy.controller;

import com.woniuxy.entity.Doctor;
import com.woniuxy.entity.Schedule;
import com.woniuxy.service.ScheduleService;
import com.woniuxy.util.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description:排班
 * @Author: NoNo
 * @Date: 2024/4/19&17:08
 */
@RestController
@RequestMapping("/schedule")
public class ScheduleController {
    @Autowired
    ScheduleService scheduleService;

    @PostMapping ("/querylist")
    public ResponseData queryList(@RequestBody Schedule schedule){
        return scheduleService.queryList(schedule);
    }

    @PostMapping("/addschedule")
    public ResponseData addSchedule(@RequestBody Doctor doctor){
        return scheduleService.addSchedule(doctor);
    }



}
